
for i in range(1, 10):
    # 从第一行到第九行
    for j in range(1, i+1):
        # 每一行有i个数字, i*(1~i)
        print(f"{i} * {j} = {i * j}", end="    ")
    print()

